package davidlauzon.activerecord.nodes;

import davidlauzon.activerecord.visitor.SqlSerializer;

public class DropTableStatement extends SqlStatement
{
    /*********************************************************************************************
     * VARIABLES
     *********************************************************************************************/
    private Table       _table;
    private boolean     _ifExists;
    
    
    /*********************************************************************************************
     * SIMPLE GETTER & SETTERS
     *********************************************************************************************/
    public Table   table()    { return _table; }
    public boolean ifExists() { return _ifExists; }
    
    
    /*********************************************************************************************
     * PUBLIC METHODS
     *********************************************************************************************/
    public DropTableStatement() {
        super();
        _ifExists = false;
    }
    
    public void setTable(Table table) {
        _table = table;
    }
    
    public void setIfExists(boolean value) {
        _ifExists = value;
    }

    @Override
    public String accept(SqlSerializer visitor) {
        return visitor.visit( this );
    }
}
